package com.common.base;

import android.Manifest;

/**
 * @desc:         项目基础常量
 * @author:       Leo
 * @date:         2016/12/26
 */
public class Constants
{

    public static final int REQUEST_CODE_MOBILE = 1221;                            // 获取手机信息
    public static final int REQUEST_CODE_PHOTO = 1211;                             // 获取图片回调
    public static final int REQUEST_CODE_CAMERA = 2121;                            // 获取拍照回调


    public static final int FILE_CODE_PERMISSION = 5002;                            // 文件读取权限
    public static final int LOCATION_CODE_PERMISSION = 5004;                        // 定位权限
    public static final String[] REQUECT_NEEDS = new String[]
            { Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION,
                    Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE,
                    Manifest.permission.READ_PHONE_STATE };                         // 定位所有权限

//    public static final String BaseUrl = "http://xmqp1802008.api.hzxmnet.com/";         // 网络请求地址
public static final String BaseUrl = "http://47.93.6.212:8080/web/";         // 网络请求地址
    public static final int SERVER_RESP_TOKEN_EXPRIED = 100004;                        // Token失效标志量
    public static final long DEFAULT_TIMEOUT = 30;                                  // 网络请求超时时间 单位为秒

    public static final int SERVER_RESP_SUCCESS_CODE = 0;                           // 请求成功
    public static final int SERVER_RESP_SUCCESS_CODE_NO_MORE = 11001;               // 请求成功无更多数据
}